# cmake_minimum_required(VERSION 3.15) 
# project(cmake_sub_directory_demo)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/src STRING_DEMO_SRC_FILES)
set(STRING_DEMO_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/include")
message(STRING_DEMO_SRC_FILES=${STRING_DEMO_SRC_FILES})
message(STRING_DEMO_INCLUDE_DIR=${STRING_DEMO_INCLUDE_DIR})
add_executable(sub ${STRING_DEMO_SRC_FILES})
target_include_directories(sub PRIVATE ${STRING_DEMO_INCLUDE_DIR})
message(STATUS "SUB: CMAKE_CURRENT_SOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR}")